Make fewer assumptions about snapshots.txt format.
authorWill Andrews <will@firepipe.net>
Tue, 2 Jun 2015 19:46:27 +0000 (13:46 -0600)
committerWill Andrews <will@firepipe.net>
Tue, 2 Jun 2015 20:01:35 +0000 (14:01 -0600)
commitd3f590f59ff72f1d3b457ed3716483ce472053c6
tree1bca54530a2f94a108962d9c9d0030587f227d43
parente91865c19a92a77e54d0be828e094e6d205f9555
Make fewer assumptions about snapshots.txt format.

- Read the file into a nested dictionary instead of variables.
- Only apply special cases where they are really needed.
- Apply a transform to the triple argument to get the platform name to
  determine whether there is a snapshot available for it.
- Apply a similar (but slightly different) transform to get the snapshot's
  file name.  It would be better if the file name matched the platform name
  in snapshots.txt, but it's too late for that now (older versions of this
  script will certainly expect the existing name format).
src/etc/dl-snapshot.py